package org.example.diary.entity.dao;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("diary")
public class Diary {

    /**
     * 主键 id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Long userId;

    private String title;

    private String content;

    /**
     * 1:管理员隐藏 0显示
     */
    private Integer isHidden;

    private Integer isDelete;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

}
